package com.rocksdata.mc.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;


public class HomepageWidgetItem implements MultiItemEntity {
    private HomepageWidgetItemType itemType;
    private Object data;

    public HomepageWidgetItem(HomepageWidgetItemType itemType, Object data) {
        this.itemType = itemType;
        this.data = data;
    }

    @Override
    public int getItemType() {
        return itemType.ordinal();
    }

    public Object getData(){
        return data;
    }
}
